package com.xiaoma.tpo.baseDao;

import java.util.List;

public interface BaseDao<T> {
    
    public int insert(T entity);

    public int update(T entity);
    
    public int destroy(int id);
    
    public void deleteAll();
    
    public T getById(int id);
    
    public List<T> findAll();
    
    public List<T> findByColumns(T entity);
}
